import {Message} from 'element-ui'

export default function ({store, redirect}) {
  if (store.state.auth && !store.state.auth.user) {
    Message.error('请您登录')
    return redirect('/registry')
  }
}
